<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
<body>
    <div id="box">
        <h1>{{msg}}</h1>
        <h2>{{ true?yes:no}}</h2>
    </div>
    <script>
        let data = {
            msg: 'xiaojiashigehanhan'
        }
        let vue_test1 = new Vue({
            el: '#box',
            data
        })
        vue_test1.msg = 'zhangshiyuan';
    </script>
</body>
</body>
</html>